import React, { Component } from 'react'
import  './myContent.scss' 

export default class MyContent extends Component {
  constructor(){
    super()
    this.state={
      list:[
        {name:'个人信息',url:'/my/personal'},
        {name:'我的二维码',url:'/my/mycontent'},
        {name:'我的尺寸',url:'/my/mycontent'},
        {name:'会员俱乐部',url:'/my/mycontent'},
        {name:'积分中心',url:'/my/mycontent'},
      ]
    }
  }

  render() {
    const {list} = this.state
    return (
      <div className='myContent'>
        <div className='myContentBox'>
          {list.map((item,index) =>(
            <div className='myonce border-bottom' key={index} onClick={() =>{this.props.history.push(item.url)}}>
              <span>{item.name}</span>
              <span className='iconfont icon-jiantou'/>
            </div>
          ))}
        </div>
      </div>
    )
  }
}
